const timeout = {
  state: {
    heartBeat: null
  },
  mutations: {
    SET_HEART_BEAT: (state, heartBeat) => {
      state.heartBeat = heartBeat;
    },
  },
  actions: {
    SetInterval({ commit }, heartInterval){
      commit('SET_HEART_BEAT', heartInterval);
    }
  }
};

export default timeout;